package com.queming.core.dto;

import com.queming.core.enums.Gender;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author chencidiao
 * @date 2022/04/19 19:00
 **/
@Data
public class UserCreateDto {
    @NotBlank(message = "用户名不能为空")
    @Size(min = 4, max = 64, message = "用户名长度在4个字符至64个字符之间")
    private String username;
    private String password;
    private String nickname;
    private Gender gender;
}
